from  pynput import  keyboard
from playsound import  playsound
from threading import  Thread

count=0
def onRelease(key):
    print(key)
    global  count
    count+=1
    if count %10==0:
       # playsound('TWICE - THIS IS FOR.mp3')
        t=Thread(target=playsound,args=('TWICE - THIS IS FOR.mp3',))
        t.start()

listener=keyboard.Listener(on_release=onRelease)
listener.start()
listener.join()
#1234566999vvvvvvvffv